package com.zjq.service;

import com.zjq.dao.OrderListMapper;
import com.zjq.pojo.Address;
import com.zjq.pojo.Order;
import com.zjq.pojo.OrderList;

import java.util.List;

public class OrderListServiceImpl implements OrderListService {
    public OrderListMapper orderListMapper;

    public void setOrderListMapper(OrderListMapper orderListMapper) {
        this.orderListMapper = orderListMapper;
    }

    public int addOrder(Order order) {
        return orderListMapper.addOrder(order);
    }

    public int addOrderList(OrderList orderList) {
        return orderListMapper.addOrderList(orderList);
    }

    public int addAddress(Address address) {
        return orderListMapper.addAddress(address);
    }

    public List<Order> queryOrder(int id) {
        return orderListMapper.queryOrder(id);
    }

    public Order queryOrderById(int id) {
        return orderListMapper.queryOrderById(id);
    }

    public List<Order> queryAllOrder() {
        return orderListMapper.queryAllOrder();
    }

    public Order queryOrderListDetailById(int id) {
        return orderListMapper.queryOrderListDetailById(id);
    }
}
